SciChart.Drawing Assembly > System.Windows.Media.Imaging Namespace > WriteableBitmapExtensions Class > ForEach Method : ForEach(WriteableBitmap,Func<Int32,Int32,Color,Color>) Method
The WriteableBitmap.
The function to apply. With parameters x, y, source color and a color as a result
ForEach(WriteableBitmap,Func<Int32,Int32,Color,Color>) Method
Applies the given function to all the pixels of the bitmap in order to set their color.
Syntax
[Extension()]
public static void ForEach( 
   WriteableBitmap bmp,
   Func<int,int,Color,Color> func
)

Parameters

bmp
The WriteableBitmap.
func
The function to apply. With parameters x, y, source color and a color as a result
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also